list_of_numbers = [value ** 3 for value in range(1, 11)]
print(list_of_numbers)
print('The first three items in the list are:')
for item in list_of_numbers[:3]:
    print(item)
print('The items from the middle of the list are:')
for item in list_of_numbers[5:8]:
    print(item)
print('The last three items of the list are:')
for item in list_of_numbers[-3:]:
    print(item)